<?php
/* @file del-validator.php
 * @author Liuexp
 * @description php interface for deleting validator
 */


require_once("helper.php");
if(!InGroup(GROUP_DEL_VALIDATOR)){
	MsgBox(ACCESS_DENIED);
	exit();
}
$name=$_GET['validator'];
$bean=R::findOne("validator","name='$name'");
R::trash($bean);
MsgBox(SUCC);
?>
